package com.zmc.order.exception;

import com.zmc.common.enums.ErrorCodeEnum;

/**
 * @Author：zmc
 * @Date：2025/2/12 13:36
 */
public class CommentException extends RuntimeException{

    private final ErrorCodeEnum errorCodeEnum;

    public CommentException(String msg) {
        super(msg);
        this.errorCodeEnum = ErrorCodeEnum.BUSINESS_EXCEPTION;
    }

    public ErrorCodeEnum getErrorCode() {
        return errorCodeEnum;
    }
}
